#ifndef _SFS_DATA_SVR_COMMON_H_
#define _SFS_DATA_SVR_COMMON_H_

#define DS_ERR_UNKNOWN_ERR -1
#define DS_ERR_INVALID_ARGS -2
#define DS_ERR_FILE_ALREADY_EXIST -3
#define DS_ERR_OS_FILE_OP_ERR -4
#define DS_ERR_SERVER_DETECTED_NETWORK_ERR -5
#define DS_ERR_NOTIFY_MDS_ERROR -6

#define DS_CMD_CREATE_FILE 1
#define DS_CMD_DELETE_FILE 2
#define DS_CMD_READ_FILE 3
#define DS_CMD_WRITE_FILE 4
#define DS_CMD_GET_FILE_CONTROL_INFO 5
#define DS_CMD_REPLICATE 6
#define DS_CMD_TRUNCATE 7

#define DS_WRITE_MODE_APPEND 1
#define DS_WRITE_MODE_NORMAL 0

#define DS_CRC_CHUNK_SIZE (1024 * 1024)

#define DS_ERR_CLIENT_DETECTED_INVALID_ARGS -100
#define DS_ERR_CLIENT_TO_SVR_NETWORK_ERR -101
#define DS_ERR_INVALID_RESPONSE -102
#endif
